import type { IDemoParams, IDemoResult } from './type'
import http from '../http'

// 接口1
export function postTest(id: number, data: IDemoParams): Promise<IDemoResult> {
  return http.post(`/test/${id}`, data)
}

export function fetchTest() {
  return http.get('/test')
}
